package com.entity;

import java.util.ArrayList;
import java.util.List;

public class ActivitytypeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivitytypeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAtnoIsNull() {
            addCriterion("atno is null");
            return (Criteria) this;
        }

        public Criteria andAtnoIsNotNull() {
            addCriterion("atno is not null");
            return (Criteria) this;
        }

        public Criteria andAtnoEqualTo(Integer value) {
            addCriterion("atno =", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotEqualTo(Integer value) {
            addCriterion("atno <>", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThan(Integer value) {
            addCriterion("atno >", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoGreaterThanOrEqualTo(Integer value) {
            addCriterion("atno >=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThan(Integer value) {
            addCriterion("atno <", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoLessThanOrEqualTo(Integer value) {
            addCriterion("atno <=", value, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoIn(List<Integer> values) {
            addCriterion("atno in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotIn(List<Integer> values) {
            addCriterion("atno not in", values, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoBetween(Integer value1, Integer value2) {
            addCriterion("atno between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnoNotBetween(Integer value1, Integer value2) {
            addCriterion("atno not between", value1, value2, "atno");
            return (Criteria) this;
        }

        public Criteria andAtnameIsNull() {
            addCriterion("atname is null");
            return (Criteria) this;
        }

        public Criteria andAtnameIsNotNull() {
            addCriterion("atname is not null");
            return (Criteria) this;
        }

        public Criteria andAtnameEqualTo(String value) {
            addCriterion("atname =", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotEqualTo(String value) {
            addCriterion("atname <>", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameGreaterThan(String value) {
            addCriterion("atname >", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameGreaterThanOrEqualTo(String value) {
            addCriterion("atname >=", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLessThan(String value) {
            addCriterion("atname <", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLessThanOrEqualTo(String value) {
            addCriterion("atname <=", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameLike(String value) {
            addCriterion("atname like", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotLike(String value) {
            addCriterion("atname not like", value, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameIn(List<String> values) {
            addCriterion("atname in", values, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotIn(List<String> values) {
            addCriterion("atname not in", values, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameBetween(String value1, String value2) {
            addCriterion("atname between", value1, value2, "atname");
            return (Criteria) this;
        }

        public Criteria andAtnameNotBetween(String value1, String value2) {
            addCriterion("atname not between", value1, value2, "atname");
            return (Criteria) this;
        }

        public Criteria andAtdescIsNull() {
            addCriterion("atdesc is null");
            return (Criteria) this;
        }

        public Criteria andAtdescIsNotNull() {
            addCriterion("atdesc is not null");
            return (Criteria) this;
        }

        public Criteria andAtdescEqualTo(String value) {
            addCriterion("atdesc =", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescNotEqualTo(String value) {
            addCriterion("atdesc <>", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescGreaterThan(String value) {
            addCriterion("atdesc >", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescGreaterThanOrEqualTo(String value) {
            addCriterion("atdesc >=", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescLessThan(String value) {
            addCriterion("atdesc <", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescLessThanOrEqualTo(String value) {
            addCriterion("atdesc <=", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescLike(String value) {
            addCriterion("atdesc like", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescNotLike(String value) {
            addCriterion("atdesc not like", value, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescIn(List<String> values) {
            addCriterion("atdesc in", values, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescNotIn(List<String> values) {
            addCriterion("atdesc not in", values, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescBetween(String value1, String value2) {
            addCriterion("atdesc between", value1, value2, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtdescNotBetween(String value1, String value2) {
            addCriterion("atdesc not between", value1, value2, "atdesc");
            return (Criteria) this;
        }

        public Criteria andAtstateIsNull() {
            addCriterion("atstate is null");
            return (Criteria) this;
        }

        public Criteria andAtstateIsNotNull() {
            addCriterion("atstate is not null");
            return (Criteria) this;
        }

        public Criteria andAtstateEqualTo(Integer value) {
            addCriterion("atstate =", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotEqualTo(Integer value) {
            addCriterion("atstate <>", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateGreaterThan(Integer value) {
            addCriterion("atstate >", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("atstate >=", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateLessThan(Integer value) {
            addCriterion("atstate <", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateLessThanOrEqualTo(Integer value) {
            addCriterion("atstate <=", value, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateIn(List<Integer> values) {
            addCriterion("atstate in", values, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotIn(List<Integer> values) {
            addCriterion("atstate not in", values, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateBetween(Integer value1, Integer value2) {
            addCriterion("atstate between", value1, value2, "atstate");
            return (Criteria) this;
        }

        public Criteria andAtstateNotBetween(Integer value1, Integer value2) {
            addCriterion("atstate not between", value1, value2, "atstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}